home *** CD-ROM | disk | FTP | other *** search
- Subject: Re(2): trouble with data linking
- Sent: 9/10/96 7:31 AM
- Received: 9/10/96 7:31 AM
- From: "Ken Grigsby" <grigsby@csi-health.com>
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List
-
-
- >>I'm having trouble getting linking to work. I'm trying to make a
- >>part displays one month of a calendar. I would like to link it with
- >>another instance of the same part so that when the user changes the
- >>month or year of the first, the second automatically updates to the
- >>month after the first. The calendar itself has no selectable content
- >>but I create a selection object that references the part content for
- >>enabling the Copy menu item and for the source link. After I put two
- >>instances of the calendar in ODF Table or ODF Draw, I copy the first,
- >>activate the second and "Paste Asä" with automatic linking and merge
- >>into contents selected. The second gets updated correctly at this
- >>point. But any changes made after this to the first are not propagated
- >>to the second (i.e. DoUpdateLink is not called). I am calling the
- >>presentation's ContentUpdated method when the data in the first is
- >>changed.
- >
- >It's unclear to me which part is managing the linking. Does your calendar
- part >subclass FW_CLinkManager, FW_CLinkSource, and FW_CLinkDestination? If
- not,
- >you're relying on the linking support in the container part (ODFDraw or
- >ODFTable). The linking code in the container part will paste the entire
- >calendar part every time the link is updated. In other words, the 2nd
- calendar >part is created by the container's linking code, not you. It's a
- "live copy"
- >of the 1st calendar part.
- >
- >My second question is, which part is handling the Paste As command? If it's
- the >calendar part, and it doesn't provide its own linking support, then
- you're not >actually creating a link but doing a simple paste.
- >
- >Mary Boetcher
- >ODF Person
-
- Mary,
-
- 1) Yes, my calendar part does subclass FW_CLinkManager, FW_CLinkSource, and
- FW_CLinkDestination.
-
- 2) My frame creates a FW_CClipboardCommand to handle the Paste As.
-
- Ken Grigsby